﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FirebirdSql.Data;
using FirebirdSql.Data.Client;
using FirebirdSql.Data.Entity;
using FirebirdSql.Data.FirebirdClient;
using System.Collections;

namespace DocManagerORM.FB
{
  public class FBDatabase
    {

      public FBDatabase()
      {
         
      }


      public static void CreaDatabase()
      {
          //var cs = "server type=Embedded;data source=localhost;initial catalog=c:\\MyData.fdb;character set=UNICODE_FSS;user id=SYSDBA;password=masterkey";
          var cs = ";data source=localhost;initial catalog="+  Environment.CurrentDirectory
              +"\\DocManDB.fdb;character set=UNICODE_FSS;user id=SYSDBA;password=masterkey";

          FbConnection.CreateDatabase(cs,true);
      
      }//fM

    }
}
